#!/bin/bash
# delete swap from fstab file
sed -i "/swap/d" /etc/fstab


# get swap status
#SWAP_CAP=`free|grep Swap  |awk '{print $2}'`

# get swap partition
#DEVICE=`blkid  |grep swap|awk -F: '{print $1}'`

#if [ $SWAP_CAP -gt 0 ]
#then
#  echo 'Swap is enable'
#  # disable swap
#  swapoff -a
#else
#  echo 'No swap'
#fi
#
#if [ x$DEVICE != x ]
#then
#  if [ -n $DEVICE ]
#  then
#  # delete swap partition
#  mkfs.ext4 $DEVICE
#  fi
#fi
